<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>EL表达式</title>
</head>
<body>
    ${hobby} <br>
    ${user.name} <br>
    <hr>

    ${user.age + 1} <br>
    ${user.age>=18} <br>
    ${user.age>=18 ? 'yes' : 'no'} <br>
    ${user.name == "tom"} 或 ${user.name eq "tom"} <br>
    ${user == null} 或 ${empty user}
    <hr>

    <script>
        // 可以在JavaScript中使用EL表达式
        var name = '${user.name}'
        var age = ${user.age}
        console.log(name)
        console.log(age)
    </script>
</body>
</html>
